<template>
  <div id="leafContainer" />
</template>

<script>

import Vue from 'vue'

export default {
    name: 'Leaflet',
    data() {
        return {
        }
    },

    mounted() {
        this.init()
    },

    methods: {
        init() {
            Vue.prototype.$mapL = this.mapL = this.$L.map('leafContainer').setView([34, 116], 13)
            this.$L.tileLayer('https://webst01.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}', {
                maxZoom: 5
            }).addTo(this.mapL)
        }
    }
}
</script>

<style lang="scss" scoped>
#leafContainer {
  position: absolute;
  top: 102px; // 70+32
  width: 100%;
  height: calc(100% - 102px);
  /*background: #313131;*/
  z-index: 1;
  overflow: hidden;
}
/*.crosshare-cursor{*/
/*  cursor: crosshair;*/
/*}*/
</style>
